<?php
class qGlobals
{
    private static $server = array();
    private static $get = array();
    private static $post = array();
    private static $cookie = array();
    private static $files = array();
    private static $env = array();
    
    public static function Init()
    {
        self::$server = $_SERVER;
        self::$get = $_GET;
        self::$post = $_POST;
        self::$cookie = $_COOKIE;
        self::$files = $_FILES;
    	self::$env = $_ENV;
    }
    
    public static function Server($key)
    {
        return self::$server[$key];
    }
    
    public static function Get($key)
    {
        return self::$get[$key];
    }
    
    public static function Post($key)
    {
        return self::$post[$key];
    }
    
    public static function Cookie($key)
    {
        return self::$cookie[$key];
    }
    
    public static function Files($key)
    {
        return self::$files[$key];
    }
    
    public static function Env($key)
    {
        return self::$env[$key];
    }
}